package com.zonski.jbots.engine.collision;

import com.zonski.jbots.engine.CollisionEffect;
import com.zonski.jbots.engine.CollisionData;
import com.zonski.jbots.engine.Entity;
import com.zonski.jbots.engine.Engine;

/**
 * Collision effect implementation that does nothing
 */
public final class NoCollisionEffect implements CollisionEffect
{
    public static final NoCollisionEffect INSTANCE = new NoCollisionEffect(CollisionEffect.NO_COLLISIONS);

    private int collisionType;

    public NoCollisionEffect(int collisionType)
    {
        this.collisionType = collisionType;
    }

    public final boolean apply(Entity entity, Engine engine, CollisionData collision)
    {
        return false;
    }

    public final int getCollisionType(Entity entity, Entity with)
    {
        return this.collisionType;
    }
}
